<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		   <link rel="stylesheet" href="font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/typeahead-bs2.min.js"></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="assets/layer/layer.js" type="text/javascript" ></script>
<script src="assets/laydate/laydate.js" type="text/javascript"></script>
<script src="js/lrtk.js" type="text/javascript" ></script>
<title>订单列表</title>
</head>
<body>
<div class="clearfix">
  <div class="handling_style" id="order_hand">
    <div id="scrollsidebar" class="left_Treeview">
      <div class="show_btn" id="rightArrow"><span></span></div>
      <div class="widget-box side_content" >
        <div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
        <div class="side_list">
          <div class="widget-header header-color-green2">
            <h4 class="lighter smaller">订单类型</h4>
          </div>
          <div class="widget-body">
           <ul class="b_P_Sort_list">
             <li><i class="orange  fa fa-reorder"></i><a href="#">全部订单(3)</a></li>
             <li><i class="fa fa-sticky-note pink "></i> <a href="#">已完成(2)</a></li>
             <li><i class="fa fa-sticky-note pink "></i> <a href="#">代付款(0)</a> </li>
             <li><i class="fa fa-sticky-note pink "></i> <a href="#">代发货(1)</a></li>
             <li><i class="fa fa-sticky-note pink "></i> <a href="#">代收货(1)</a></li>
			  <li><i class="fa fa-sticky-note pink "></i> <a href="#">待审核(2)</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="order_list_style" id="order_list_style">
      
  <div class="search_style">
            <span class="l_f">
        <a href="javascript:ovid()"  id="member_add" class="btn btn-warning"><i class="icon-plus"></i>添加订单</a>
  </span>
      <ul class="search_content clearfix">
       <li><label class="l_f">订单编号</label><input name="" type="text"  class="text_add" placeholder="输入订单编号"  style=" width:250px"/></li>
       <li><label class="l_f">交易时间</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"></li>
       <li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
      </ul>
    </div>


      <!--交易订单列表-->
      <div class="Orderform_list">
   <table class="table table-striped table-bordered table-hover" style="width:100%" id="sample-table">
		<thead>
		 <tr>
				<th width="80px">序号</th>
				<th width="120px">订单编号</th>
				<th width="100px">订单类型</th>
				<th width="150px">产品名称</th>
				<th width="100px">客户名称</th>
				<th width="100px">支付方式</th>
				<th width="100px">交易金额</th>				
                <th width="100px">交易时间</th>				
				<th width="150px">所属分类</th>
                <th width="80px">数量</th>
				<th width="100px">状态</th>
                <th width="100px">说明</th>                
				<th width="150px">操作</th>
			</tr>
		</thead>
	<tbody>
	  <tr>
     <td>1</td>
     <td>20160705445622</td>
	 <td>线下</td>
     <td class="order_product_name"> 旭派电池</td>
	 <td > 旭派</td>
	  <td > 银联卡</td>
     <td>456.5</td>
     <td>2016-7-5</td>
     <td>48V电池</td>
     <td>2</td>
      <td class="td-status"><span class="label label-success radius">已发货</span></td>
      <td>支付成功</td>
     <td>
	 <a title="查看详情"  href="deal_auditing.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
     </td>
     </tr>
     <tr>
     <td>3</td>
     <td>20160705445622</td>
	 <td>线下</td>
      <td class="order_product_name"> 旭派电池</td>
	  <td > 旭派</td>
	  <td > 银联卡</td>
     <td>456.5</td>    
     <td>2016-7-5</td>
     <td>48V电池</td>
     <td>200</td>
       <td class="td-status"><span class="label label-danger radius">未审核</span></td>
 	 <td>等待审核</td>
     <td>
	 <a title="审核"  href="order_sh.html"  class="btn btn-xs btn-info"  ><i class="bigger-10" style="fout-size:5">审核</i></a>
     </tr>
	  <tr>
     <td>3</td>
     <td>20160705445622</td>
	 <td>线下</td>
      <td class="order_product_name"> 旭派电池</td>
	  <td > 旭派</td>
	  <td > 银联卡</td>
     <td>456.5</td>    
     <td>2016-7-5</td>
     <td>48V电池</td>
     <td>200</td>
       <td class="td-status"><span class="label label-danger radius">未审核</span></td>
 	 <td>等待审核</td>
     <td>
	 <a title="审核"  href="order_sh.html"  class="btn btn-xs btn-info"  ><i class="bigger-10" style="fout-size:5">审核</i></a>
     </tr>
      <tr>
     <td>4</td>
     <td>11523754456233</td>
	 <td>线上</td>
     <td class="order_product_name"> 旭派电池</td>
	 <td > 旭派</td>
	 <td > 银联卡</td>
     <td>456.5</td>    
     <td>2016-7-5</td>
     <td>48V电池</td>
     <td>200</td>
      <td class="td-status"><span class="label label-success radius">已审核</span></td>
      <td> 待生产</td>
     <td>
	 	 <a title="查看详情"  href="Order_cx.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
     </td>
     </tr>
	 <tr>
     <td>5</td>
     <td>11523754456233</td>
	 <td>线上</td>
     <td class="order_product_name"> 旭派电池</td>
	 <td > 旭派</td>
	 <td > 银联卡</td>
     <td>456.5</td>    
     <td>2016-7-5</td>
     <td>48V电池</td>
     <td>200</td>
      <td class="td-status"><span  class="label label-success radius">已支付</span></td>
      <td> 已发货</td>
     <td>
	 <a title="查看详情"  href="detail_auditing.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
    
     
     </td>
     </tr>
    </tbody>
    </table>   
      </div>
    </div>
  </div>
</div>

</div>
</div>
</div>
<div class="add_menber" id="add_menber_style" style="display:none">
  
    <ul class=" page-content">
     <li style="position: relative;left: -5px;"><label class="label_name" style="width: 85px;">订单编号：</label><span class="add_name">1245879635457</span><div class="prompt r_f"></div></li>
	 <li><label class="label_name">产品名称：</label><span class="add_name"><select name='sldd' style='width:150px;margin-left:10px;'> 
	 <option value=''></option>
	 <option value=''>**商品</option>
	 <option value=''>**商品</option> 
	 </select></span><div class="prompt r_f"></div></li>
	 <li><label class="label_name">客户名称：</label><span class="add_name">    <select name='sldd' style='width:150px;margin-left:10px;'> <option value=''></option><option value=''>南京XXX</option><option value=''>武汉XXX</option><option value=''>上海XXX</option>
    </select></span><div class="prompt r_f"></div></li>
	 <li><label class="label_name" >交易金额：</label><span class="add_name"><input name="交易金额" type="text"  class="text_add"/></li>
	 	 <li><label class="label_name" >支付方式：</label><span class="add_name"><select name='sldd' style='width:150px;margin-left:10px;'> <option value=''></option><option value=''>在线支付</option><option value=''>线下支付</option>
    </select>
	</li>  
	
	<li ><label class="label_name">数量：</label><span class="add_name"><input name="数量" type="text"  class="text_add" /></span><div class="prompt r_f"></div></li>
	<li ><label class="label_name">下单者：</label><span class="add_name"><select name='sldd' style='width:150px;margin-left:10px;'> 
	 <option value=''>王五</option>
	 <option value=''>赵六</option>
	 <option value=''>张三</option> 
	 </select></span><div class="prompt r_f"></div></li>
   
    </ul>
 </div>	 
  <!--编辑打印机图层-->

 </div>
</div>
</div>
 </div>
</div>
</body>
</html>
<script>

 

$(function() { 
	$("#order_hand").fix({
		float : 'left',
		//minStatue : true,
		skin : 'green',	
		durationTime :false,
		spacingw:30,//设置隐藏时的距离
	    spacingh:250,//设置显示时间距
		table_menu:'.order_list_style',
	});
});
 laydate({
    elem: '#start',
    event: 'focus' 
});



//初始化宽度、高度  
 $(".widget-box").height($(window).height()); 
$(".order_list_style").width($(window).width()-220);
 $(".order_list_style").height($(window).height()-30);
  //当文档窗口发生改变时 触发  
    $(window).resize(function(){
	$(".widget-box").height($(window).height());
	 $(".order_list_style").width($(window).width()-234);
	  $(".order_list_style").height($(window).height()-30);
});
/*状态-结束*/
function member_stop(obj,id){
	layer.confirm('确认修改状态为已结束？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs " onClick="member_start(this,id)" href="javascript:;" title="进行中"><i class="fa fa-close bigger-120"></i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已结束</span>');
		$(obj).remove();
		layer.msg('已结束!',{icon: 5,time:1000});
	});
}


/*人员-删除*/
function Order_form_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
//订单列表
jQuery(function($) {
		var oTable1 = $('#sample-table').dataTable( {
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[2,3,4,5,6,7,8]}// 制定列不参与排序
		] } );
                 //全选操作
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			});
			$('#member_add').on('click', function(){
    layer.open({
        type: 1,
        title: '添加订单',
		maxmin: true, 
		shadeClose: true, //点击遮罩关闭层
        area : ['800px' , ''],
        content:$('#add_menber_style'),
		btn:['提交','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('添加成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
});

</script>

